home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / rem_acc / listv10.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-04-13  |  5KB  |  142 lines

  1. @echo off
  2. rem: RA-Lister v1.0 Installation File
  3. rem: By Jason Raphael (1:284/22)
  4.  
  5. if "%RA%" == "" goto error1
  6. if not exist %RA%\RA.EXE goto error2
  7. if "%TXTFILES%" == "" goto error3
  8. if "%1" == "" goto error4
  9. if exist %1\lister.q-a ren %1\lister.q-a lister.old
  10. if exist %RA%\MESSAGES.RDX goto 25X
  11. goto 20X
  12.  
  13. :25X
  14. cls
  15. echo ■ RA-Lister v1.0 Installation
  16. echo.
  17. echo ■ RemoteAccess v2.5x detected.
  18. echo.
  19. echo If you are indeed running RemoteAccess v2.5x, please press any key now
  20. echo to continue.  
  21. echo.
  22. echo If you are NOT running v2.5x, you for some reason have *.RDX files (RA 2.5x's 
  23. echo index files) in your RemoteAccess directory.  These files are used ONLY by RA 
  24. echo v2.5x, and should not be present with any other versions of RA.  Please press
  25. echo CTRL-C now, go delete *.RDX files from your RA system directory, and rerun 
  26. echo INSTALL.BAT.
  27. echo.
  28. pause >nul
  29. cls
  30. echo ■ RA-Lister v1.0 Installation
  31. echo.
  32. echo ■ Copying 2.5x enhanced version of RA-Lister to your Q-A directory..
  33. echo.
  34. copy lister.25x %1\lister.q-a
  35. echo ■ Copying necessary batch files to your RA system directory..
  36. echo.
  37. copy lister.bat %RA%
  38. echo ■ Done!
  39. echo.
  40. pause
  41. goto info
  42.  
  43. :20X
  44. cls
  45. echo ■ RA-Lister v1.0 Installation
  46. echo.
  47. echo ■ RemoteAccess v2.0x detected.
  48. echo.
  49. echo If you are indeed running RemoteAccess v2.0x, please press any key now
  50. echo to continue.  
  51. echo.
  52. echo If you are NOT running v2.0x, press CTRL-C now and see the RALISTER.DOC for 
  53. echo more information.
  54. echo.
  55. pause >nul
  56. cls
  57. echo ■ RA-Lister v1.0 Installation
  58. echo.
  59. echo ■ Copying 2.0x enhanced version of RA-Lister to your Q-A directory..
  60. echo.
  61. copy lister.20x %1\lister.q-a
  62. echo ■ Copying necessary batch files to your RA system directory..
  63. echo.
  64. copy lister.bat %RA%
  65. echo ■ Done!
  66. echo.
  67. pause
  68. goto info
  69.  
  70. :INFO
  71. cls
  72. echo ■ RA-Lister v1.0 Installation
  73. echo.
  74. echo This installation procedure is completed.
  75. echo.
  76. echo All necessary files have been moved to their proper locations.  All you 
  77. echo need to do is add the option to run RA-Lister in the menu(s) you'd like.
  78. echo.
  79. echo Please see RALISTER.DOC for complete details and more important information.
  80. echo.
  81. pause
  82. goto end
  83.  
  84. :ERROR1
  85. cls
  86. echo.
  87. echo ■ RA-Lister ERROR:
  88. echo   RemoteAccess environment variable not set.  Please set the RA environment 
  89. echo   variable to your RemoteAccess system path, or see RALISTER.DOC for more 
  90. echo   information.  Ex: SET RA=D:\RA
  91. echo.
  92. echo ■ RA-Lister ERROR: >>d:\RALISTER.err
  93. echo   RemoteAccess environment variable not set.  Please set the RemoteAccess environment >>d:\RALISTER.err
  94. echo   variable to your RemoteAccess system path, or see RALISTER.DOC for more >>d:\RALISTER.err
  95. echo   information.  Ex: SET RA=D:\RA >>d:\RALISTER.err
  96. goto end
  97.  
  98. :ERROR2
  99. cls
  100. echo.
  101. echo ■ RA-Lister ERROR:
  102. echo   RemoteAccess environment variable set incorrectly.  Please set 
  103. echo   the RA environment variable to your RemoteAccess system path, or see 
  104. echo   RALISTER.DOC for more information.  Ex: SET RA=D:\RA
  105. echo.
  106. echo ■ RA-Lister ERROR: >>d:\RALISTER.err
  107. echo   RemoteAccess environment variable set incorrectly.  Please set >>d:\RALISTER.err
  108. echo   the RA environment variable to your RemoteAccess system path, or see >>d:\RALISTER.err
  109. echo   RALISTER.DOC for more information.  Ex: SET RA=D:\RA >>d:\RALISTER.err
  110. pause
  111. goto end
  112.  
  113. :ERROR3
  114. cls
  115. echo.
  116. echo ■ RA-Lister ERROR:
  117. echo   Textfile variable not set.  Please set the TXTFILES environment 
  118. echo   variable to your RemoteAccess textfile path, or see RALISTER.DOC for more 
  119. echo   information.  Ex: SET TXTFILES=D:\RA\TXTFILES
  120. echo.
  121. echo ■ RA-Lister ERROR: >>d:\ralister.err
  122. echo   Textfile variable not set.  Please set the TXTFILES environment >>d:\ralister.err
  123. echo   variable to your RemoteAccess textfile path, or see RALISTER.DOC for more >>d:\ralister.err
  124. echo   information.  Ex: SET TXTFILES=D:\RA\TXTFILES >>d:\ralister.err
  125. goto end
  126.  
  127. :ERROR4
  128. cls
  129. echo.
  130. echo ■ RA-Lister ERROR:
  131. echo   Questionnaire directory not specified.  Specify your RemoteAccess Q-A
  132. echo   directory (as defined in RACONFIG) as the first parameter on the command
  133. echo   line.  DO NOT INCLUDE A TRAILING BACKSLASH!  Ex: INSTALL D:\RA\Q-A
  134. echo.
  135. goto end
  136.  
  137.  
  138. :END
  139. echo.
  140. echo ■ Thanks for trying RA-Lister v1.0!
  141. echo.
  142.